import Mock from "mockjs2";
import { builder } from "../util";

const systemAddUser = () => {
  return builder({
    code: 200,
    msg: "设置成功",
    data: []
  });
};

const getExamineList = () => {
  return builder({
    page: 1,
    max_page: 1,
    data: [
      {
        phone: "17339612795", // 手机号
        start_time: 0, //开始时间
        sytem_id: 1, // 当前记录的id
        end: 24, //结束时间
        num: 3, // 分配数量
        count: 5 //审核数量
      },
      {
        phone: "17339612000", // 手机号
        start_time: 0, //开始时间
        sytem_id: 1, // 当前记录的id
        end: 24, //结束时间
        num: 3, // 分配数量
        count: 5 //审核数量
      },
      {
        phone: "17339612111", // 手机号
        start_time: 0, //开始时间
        sytem_id: 1, // 当前记录的id
        end: 24, //结束时间
        num: 3, // 分配数量
        count: 5 //审核数量
      }
    ]
  });
};

const editUserInfo = () => {
  return builder({
    code: 200,
    msg: "设置成功",
    data: []
  });
};
const findInfoList = () => {
  return builder({
    code: 200,
    msg: "返回成功",
    data: {
      sytem_id: 1, //记录id
      start_time: 0, //开始时间
      end: 24 //结束时间
    }
  });
};

Mock.mock(/\/local\/systemAddUser/, "post", systemAddUser);
Mock.mock(/\/local\/getExamineList/, "post", getExamineList);
Mock.mock(/\/local\/editUserInfo/, "post", editUserInfo);
Mock.mock(/\/local\/findInfoList/, "post", findInfoList);
